#ifndef _VOL_REGEX_H
#define _VOL_REGEX_H

#include <regex>	

class CVolRegex
{
	public:
		std::wcmatch m_wcmatch;
		CVolString m_target;	//所返回子匹配组内存共享
		std::wregex rx;
	public:
		bool Search(const CVolString& target, const CVolString& regex, std::regex_constants::syntax_option_type syntax_type, std::regex_constants::match_flag_type flag);
		bool SearchNext(std::regex_constants::match_flag_type flag);
		bool Match(const CVolString& target, const CVolString& regex, std::regex_constants::syntax_option_type syntax_type, std::regex_constants::match_flag_type flag);
		std::wstring Replace(const CVolString& target, const CVolString& regex, const CVolString& fmt, std::regex_constants::syntax_option_type syntax_type, std::regex_constants::match_flag_type flag);
};

#endif